0 to 255 where 0=no attenuation and 255=maximum attenuation
AL_CHANNEL_MODE
_I_n_d_i_g_o_2 _a_n_d _I_n_d_y _o_n_l_y.
AL_STEREO=configure hardware for stereo audio.
AL_4CHANNEL=configure hardware for 4-channel audio.
AL_SPEAKER_MUTE_CTL
AL_SPEAKER_MUTE_ON=speaker and headphones muted.
AL_SPEAKER_MUTE_OFF=speaker and headphones unmuted.
AL_MIC_MODE
_I_n_d_i_g_o_2 _a_n_d _I_n_d_y _o_n_l_y.
AL_MONO or AL_STEREO
AL_DIGITAL_INPUT_RATE
_I_n_d_i_g_o_2 _a_n_d _I_n_d_y _o_n_l_y.
read-only. Positive values indicate sample rate in Hz. Negative
value indicates a logical rate (viz., AL_RATE_UNDEFINED). The
digital input rate is encoded in the input digital audio
stream, which can change over time.
Logical rates:
AL_RATE_UNDEFINED=digital input signal valid, but rate
not encoded in signal
AL_RATE_UNACQUIRED=digital input signal valid, but rate
not yet acquired from input signal
AL_RATE_NO_DIGITAL_INPUT=digital input signal not valid
AL_LEFT2_INPUT_ATTEN
_I_n_d_i_g_o_2 _a_n_d _I_n_d_y _o_n_l_y.
0 to 255 0=no attenuation, 255=maximum attenuation
This parameter is available on systems with 4-channel capability
only.
AL_RIGHT2_INPUT_ATTEN
_I_n_d_i_g_o_2 _a_n_d _I_n_d_y _o_n_l_y.
0 to 255 0=no attenuation, 255=maximum attenuation
This parameter is available on systems with 4-channel capability
only.
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
#include <dmedia/audio.h>
...
/* Set the speaker gains to 128 */
long buf[4] = {
AL_LEFT_SPEAKER_GAIN, 128,
AL_RIGHT_SPEAKER_GAIN, 128
};
ALsetparams(AL_DEFAULT_DEVICE,buf,4);
AAAALLLLggggeeeettttppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) and AAAALLLLsssseeeettttppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) can fail for the following reasons:
AAAALLLL____BBBBAAAADDDD____DDDDEEEEVVVVIIIICCCCEEEE _d_e_v_i_c_e is not AL_DEFAULT_DEVICE.
AAAALLLL____BBBBAAAADDDD____PPPPVVVVBBBBUUUUFFFFFFFFEEEERRRR _P_V_b_u_f_f_e_r is null (0) valued.
AAAALLLL____BBBBAAAADDDD____BBBBUUUUFFFFFFFFEEEERRRRLLLLEEEENNNNGGGGTTTTHHHH____NNNNEEEEGGGG _b_u_f_f_e_r_l_e_n_g_t_h is negative.
AAAALLLL____BBBBAAAADDDD____BBBBUUUUFFFFFFFFEEEERRRRLLLLEEEENNNNGGGGTTTTHHHH____OOOODDDDDDDD _b_u_f_f_e_r_l_e_n_g_t_h is odd.
AAAALLLL____BBBBAAAADDDD____DDDDEEEEVVVVIIIICCCCEEEE____AAAACCCCCCCCEEEESSSSSSSS audio hardware is inaccessible.
NNNNOOOOTTTTEEEE
Setting AL_LEFT_SPEAKER_GAIN or AL_RIGHT_SPEAKER_GAIN automatically sets
AL_SPEAKER_MUTE_CTL to AL_SPEAKER_MUTE_OFF.
Setting AL_CHANNEL_MODE to AL_4CHANNEL causes the input and output sample
rates to be identical.
When AL_CHANNEL_MODE is set to AL_4CHANNEL, the AL_INPUT_SOURCE parameter
controls the behavior of the second set of analog inputs (normally the
microphone input). In this state, the normal line-level inputs are always
active. Setting AL_INPUT_SOURCE to AL_INPUT_MIC causes the second set of
inputs to be mic-level. Setting AL_INPUT_SOURCE to AL_INPUT_LINE causes
the second set of analog inputs to be line-level.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Upon successful completion, AAAALLLLggggeeeettttppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) and AAAALLLLsssseeeettttppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) return
0. Otherwise, these functions return -1 and set an error number which can
be retrieved with oooosssseeeerrrrrrrroooorrrr((((3333CCCC)))).